package com.vctgo.accountSet.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vctgo.common.core.annotation.Excel;
import com.vctgo.common.core.web.domain.TenantEntity;
import lombok.Data;

import java.util.List;

/**
 * 地址表对象 chinas
 *
 * @author vctgo
 * @date 2024-12-17
 */
@Data
@TableName("chinas")
public class Chinas extends TenantEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    private Long id;

    /** 区域代码 */
    @Excel(name = "区域代码")
    private Long code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** Pid */
    @Excel(name = "Pid")
    private Long pid;

    /** 级别1省、2市、3县区 */
    @Excel(name = "级别1省、2市、3县区")
    private String level;

    /*
     *  城市
     */
    @TableField(exist = false)
    private List<Chinas> cityList;

    /*
     *   县区
     */
    @TableField(exist = false)
    private List<Chinas> areaList;


    @TableField(exist = false)
    private List<Chinas> children;



}
